<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: nars.language.CompoundTerm.prepareComponentLinks</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d0/dee/classnars_1_1language_1_1CompoundTerm_a0fcbcdbbb9e451888df7a1216715a8d1.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<a class="anchor" id="a0fcbcdbbb9e451888df7a1216715a8d1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ArrayList&lt;<a class="el" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a>&gt; nars.language.CompoundTerm.prepareComponentLinks </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Build TermLink templates to constant components and subcomponents. </p>
<p>The compound type determines the link type; the component type determines whether to build the link. </p><dl class="section return"><dt>Returns</dt><dd>A list of TermLink templates </dd></dl>

<p>Definition at line <a class="el" href="../../d5/d0e/CompoundTerm_8java_source.html#l00574">574</a> of file <a class="el" href="../../d5/d0e/CompoundTerm_8java_source.html">CompoundTerm.java</a>.</p>

<p>References <a class="el" href="../../db/daa/TermLink_8java_source.html#l00044">nars.entity.TermLink.COMPOUND</a>, and <a class="el" href="../../db/daa/TermLink_8java_source.html#l00048">nars.entity.TermLink.COMPOUND_STATEMENT</a>.</p>
<div class="fragment"><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;                                                       {</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;        ArrayList&lt;TermLink&gt; componentLinks = <span class="keyword">new</span> ArrayList&lt;TermLink&gt;();</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;        <span class="keywordtype">short</span> type = (<span class="keyword">this</span> instanceof Statement) ? <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a>.<a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a6c0e98a7948be8d940ba6afc52d43fea.html#a6c0e98a7948be8d940ba6afc52d43fea">COMPOUND_STATEMENT</a> : <a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">TermLink</a>.<a class="code" href="../../d4/d8b/classnars_1_1entity_1_1TermLink_ad95ac3ddd10cac258cecddba9b8a7fa1.html#ad95ac3ddd10cac258cecddba9b8a7fa1">COMPOUND</a>;   <span class="comment">// default</span></div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;        <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a0fcbcdbbb9e451888df7a1216715a8d1.html#a0fcbcdbbb9e451888df7a1216715a8d1">prepareComponentLinks</a>(componentLinks, type, <span class="keyword">this</span>);</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;        <span class="keywordflow">return</span> componentLinks;</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    }</div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_html"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink.html">nars.entity.TermLink</a></div><div class="ttdoc">A link between a compound term and a component term. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00038">TermLink.java:38</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_a6c0e98a7948be8d940ba6afc52d43fea_html_a6c0e98a7948be8d940ba6afc52d43fea"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink_a6c0e98a7948be8d940ba6afc52d43fea.html#a6c0e98a7948be8d940ba6afc52d43fea">nars.entity.TermLink.COMPOUND_STATEMENT</a></div><div class="ttdeci">static final short COMPOUND_STATEMENT</div><div class="ttdoc">At C, point to <C --> A> </div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00048">TermLink.java:48</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_a0fcbcdbbb9e451888df7a1216715a8d1_html_a0fcbcdbbb9e451888df7a1216715a8d1"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a0fcbcdbbb9e451888df7a1216715a8d1.html#a0fcbcdbbb9e451888df7a1216715a8d1">nars.language.CompoundTerm.prepareComponentLinks</a></div><div class="ttdeci">ArrayList&lt; TermLink &gt; prepareComponentLinks()</div><div class="ttdoc">Build TermLink templates to constant components and subcomponents. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00574">CompoundTerm.java:574</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1TermLink_ad95ac3ddd10cac258cecddba9b8a7fa1_html_ad95ac3ddd10cac258cecddba9b8a7fa1"><div class="ttname"><a href="../../d4/d8b/classnars_1_1entity_1_1TermLink_ad95ac3ddd10cac258cecddba9b8a7fa1.html#ad95ac3ddd10cac258cecddba9b8a7fa1">nars.entity.TermLink.COMPOUND</a></div><div class="ttdeci">static final short COMPOUND</div><div class="ttdoc">At C, point to (&&, A, C) </div><div class="ttdef"><b>Definition:</b> <a href="../../db/daa/TermLink_8java_source.html#l00044">TermLink.java:44</a></div></div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d81/namespacenars.html">nars</a></li><li class="navelem"><a class="el" href="../../d0/d72/namespacenars_1_1language.html">language</a></li><li class="navelem"><a class="el" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">CompoundTerm</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:59 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
